package com.jsh.dao.basic;

import java.util.List;

import org.hibernate.Query;

import com.jsh.action.basic.UserAction;
import com.jsh.base.BaseDAO;
import com.jsh.model.po.Basicuser;
import com.jsh.model.po.Jira;

public class JiraDAO extends BaseDAO<Jira> implements JiraIDAO
{
	/**
     * 设置dao映射基类
     * @return
     */
	@Override
    public Class<Jira> getEntityClass()
    {
        return Jira.class;
    }



	@Override
	public Jira findjira(Long id) {
		String hql = "from Jira j where j.id = "+id ;
		Query query = this.getHibernateTemplate().getSessionFactory().getCurrentSession().createQuery(hql);
		List<Jira> list = query.list();
	    Jira jira = list.get(0);
		return jira;
	}
	
	
	
}
